<style>
	.form-group label{
		font-weight:normal !important;
	}
	.btn-list {
		position: fixed;
		right: 40px;
		top: 25px;
	}
	.div-flex {
		display: flex
	}
	.div-flex .form-group {
		margin-right: 50px;
		text-align: center;
		line-height: 25px;
		margin-bottom: 0;
	}
</style>
<form id="add-form" class="form-horizontal col-sm-12" role="form" data-toggle="validator" method="POST" action="">
	{:token()}
	<div class="div-flex">
		<div class="btn-list">
			{eq name="row.is_examine" value="1"}
			<a class="btn btn-success btn-ajax"  data-confirm="确认要审核通过吗？" data-refresh="true"
			   data-url="qingdongams/examine/examine_record/examine?relation_type=parts&relation_id={$ids}&status=1" data-title="审核通过" >审核通过</a>
			<a class="btn btn-danger btn-ajax"  data-confirm="确认要审核拒绝吗？"  data-refresh="true" data-url="qingdongams/examine/examine_record/examine?relation_type=parts&relation_id={$ids}&status=2" data-title="审核拒绝" >审核拒绝</a>
			{/eq}

		</div>
	</div>
	<div class="form-group">
		<div class="alert alert-warning-light no-margin">
			详情
		</div>
	</div>
	<div class="tab-content">
		<div role="tabpanel" class="tab-pane fade panel-body active in" id="basic">
			<div class="form-group">
				<div class="col-xs-6 col-sm-5">
					<div class="form-group col-sm-10">
						<span class="text-muted">申请编号:</span>
						<b>{$row.odd_numbers}</b>
					</div>
				</div>
				<div class="col-xs-6 col-sm-5">
					<div class="form-group col-sm-10">
						<span class="text-muted">申请时间:</span>
						<b>{$row.storage_time}</b>
					</div>
				</div>
				<div class="col-xs-6 col-sm-5">
					<div class="form-group col-sm-10">
						<span class="text-muted">申请人:</span>
						<b>{$row.create_staff.name}</b>
					</div>
				</div>
				<div class="col-xs-6 col-sm-5">
					<div class="form-group col-sm-10">
						<span class="text-muted">备注:</span>
						<b>{$row.desc}</b>
					</div>
				</div>
			</div>

		</div>
	</div>
	<div class="form-group">
		<div class="col-xs-12 col-sm-12" style="padding-left:0 !important;padding-right:0 !important;margin-bottom: 20px;">
			<div class="alert alert-warning-light no-margin col-sm-12">
				备件信息
			</div>
		</div>
		<table id="table" class="table table-striped table-bordered table-hover table-nowrap" >
			<thead>
			<tr>
				<th style="text-align: center; vertical-align: middle; " data-field="name">
					<div class="th-inner ">名称</div>
					<div class="fht-cell"></div>
				</th>
				<th style="text-align: center; vertical-align: middle; " data-field="subname">
					<div class="th-inner qd_th">数量</div>
					<div class="fht-cell"></div>
				</th>
				<th style="text-align: center; vertical-align: middle; " data-field="subname">
					规格
				</th>
			</tr>
			</thead>
			<tbody data-listidx="0" class="qd_tr">
			{foreach name="row.parts" id="v"}
			<tr data-index="0" style="">
				<td style="text-align: center; vertical-align: middle;text-align-last: center; ">
					<a href="javascript:void(0)"  class="product" data-value="{$v.id}">{$v.name}</a>
				</td>
				<td style="text-align: center; vertical-align: middle;text-align-last: center; ">
					{$v.number}
				</td>
				<td style="text-align: center; vertical-align: middle;text-align-last: center; ">
					{$v.unit}
				</td>
			</tr>
			{/foreach}
			</tbody>
		</table>
	</div>
	<div class="form-group">
		<div class="col-xs-12 col-sm-12" style="padding-left:0 !important;padding-right:0 !important;margin-bottom: 20px;">
			<div class="alert alert-warning-light no-margin col-sm-12">
				审批信息
			</div>
		</div>


		<table id="table2" class="table table-striped table-bordered table-hover table-nowrap" >
			<thead>
			<tr>

				<th style="text-align: center; vertical-align: middle; " data-field="name">
					<div class="th-inner ">审批人</div>
					<div class="fht-cell"></div>
				</th>
				<th style="text-align: center; vertical-align: middle; " data-field="subname">
					<div class="th-inner qd_th">审批状态</div>
					<div class="fht-cell"></div>
				</th>
				<th style="text-align: center; vertical-align: middle; " data-field="subname">
					原因
				</th>
				<th style="text-align: center; vertical-align: middle; " data-field="subname">
					审核时间
				</th>
				<th style="text-align: center; vertical-align: middle; " data-field="subname">
					创建时间
				</th>
			</tr>
			</thead>
			<tbody data-listidx="0" class="qd_tr">
			{foreach name="examin" id="v"}
			<tr data-index="0" style="">

				<td style="text-align: center; vertical-align: middle;text-align-last: center; ">
					{$v.check_staff.name}
				</td>

				<td style="text-align: center; vertical-align: middle;text-align-last: center; ">
					{$v.status_name}

				</td>
				<td style="text-align: center; vertical-align: middle;text-align-last: center; ">
					{$v.content}
				</td>
				<td style="text-align: center; vertical-align: middle;text-align-last: center; ">
					{$v.check_time}
				</td>
				<td style="text-align: center; vertical-align: middle;text-align-last: center; ">
					{$v.createtime}
				</td>
			</tr>
			{/foreach}
			</tbody>
		</table>



	</div>
</form>
